#define _CRT_SECURE_NO_WARNINGS

#include"queue.hpp"

void test01()
{
	myqueue::queue<int> q2;
	q2.push(100);
	q2.push(200);
	q2.push(300);
	q2.push(400);

	myqueue::queue<int> q;
	q2.swap(q);
	while (!q.empty())
	{
		cout << q.front() << "  " <<q.back()<< endl;
		cout << q.size() << endl;
		q.pop();
	}
}

int main()
{
	test01();
}